package com.senlingspace.common.annotation;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 验证支付请求的授权码
 *
 * @author lebronjames
 * @date 2024/07/27
 */
@Constraint(validatedBy = AuthCodeValidator.class)
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface ValidAuthCode {

    String message() default "授权码校验失败！";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

}
